import { http } from "@/utils/http";
// 获取系统所有用户的积分变动记录，包含完整信息（描述、订单号、变动前后余额、状态等）
export const getUserPointsRecords = (params: {
  page: number;
  size: number;
  type?: string;
  sort?: string;
  startDate?: string;
  endDate?: string;
  timeUnit?: string;
}) => {
  return http.request<any>("get", "/api/points/records", {
    params
  });
};
// 获取积分统计信息
export const getUserPointsStats = () => {
  return http.request<any>("get", "api/points/stats");
};
